// Boost::uuid wrapper.
%{
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
%}

namespace boost
{
namespace uuids
{
	class uuid
	{
	public:
		uuid();
		~uuid();
	};
	
	uuid nil_uuid();
};
};

%extend boost::uuids::uuid {
	uuid(const std::string &id)
	{
		boost::uuids::string_generator parser;
		boost::uuids::uuid *ret = new boost::uuids::uuid();
		*ret = parser(id);
		return ret;
	}
}